package com.cizzy.relation.common;

public class UserIdHolder {
    private static final ThreadLocal<Long> th = new ThreadLocal<>();

    public static void saveUserId(Long userId) {
        th.set(userId);
    }

    public static Long getUserId() {
        return th.get();
    }

    public static void removeUserId() {
        th.remove();
    }
}
